<template>
  <el-dialog title="警告" :visible.sync="visible" width="30%">
    <span>确定要解散群组吗？</span>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取 消</el-button>
      <el-button type="primary" @click="confirmed">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  data() {
    return {
      visible: false,
    };
  },
  methods: {
    open() {
      this.visible = true;
    },
    confirmed() {
      this.visible = false;
      this.$emit("on-del");
    },
  },
};
</script>